let imageUrl = "/";
let baseUrl = "/";
let audioUrl = "/";

if (process.env.NODE_ENV === "development") {
  console.log("开发环境");
  imageUrl = "https://language.fangti.com";
  baseUrl = "https://language.fangti.com";
  audioUrl = "https://language.fangti.com/record/";
} else {
  console.log("生产环境");
  imageUrl = "https://language.fangti.com";
  baseUrl = "https://language.fangti.com";
  audioUrl = "https://language.fangti.com/record/";
}

imageUrl = "https://fangti-mcdn.oss-cn-beijing.aliyuncs.com/appstatic";
audioUrl = "/static/record/";

const audioList = [
  {
    name: "学一学",
    audio: audioUrl + "study.mp3"
  },
  {
    name: "读一读",
    audio: audioUrl + "read.mp3"
  },
  {
    name: "练一练",
    audio: audioUrl + "practice.mp3"
  },
  {
    name: "学以致用",
    audio: audioUrl + "use.mp3"
  },
  {
    name: '传作品',
    audio: audioUrl + 'upload.mp3'
  }
];

const soundList = {
  click: audioUrl + "click.mp3",
  bean: audioUrl + "bean.mp3",
  courseFinish: audioUrl + "course-finish.mp3",
  error: audioUrl + "error.mp3",
  right: audioUrl + "right.mp3"
};
export { imageUrl, baseUrl, audioList, audioUrl, soundList };
